import request from '@/utils/request'

/**
 * 调整库存
 * @param {Object} data - 调整库存数据
 * @returns {Promise}
 */
export function adjustStock(data) {
  return request({
    url: '/stock/adjust',
    method: 'post',
    data
  })
}

/**
 * 入库
 * @param {Object} data - 入库数据
 * @returns {Promise}
 */
export function stockIn(data) {
  return request({
    url: '/stock/in',
    method: 'post',
    data
  })
}

/**
 * 查询库存记录
 * @param {Object} params - 查询参数
 * @returns {Promise}
 */
export function getStockRecords(params) {
  return request({
    url: '/stock/records',
    method: 'post',
    data: params
  })
}






